# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ssh-getkey-ldap
pkgver=0.1.2
pkgrel=0
pkgdesc="A simple script to be used as AuthorizedKeysCommand in OpenSSH server to look up user's public keys in LDAP."
url="https://github.com/jirutka/ssh-getkey-ldap"
arch="noarch"
license="MIT"
depends="lua lua-ldap"
makedepends=""
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	return 0
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" PREFIX="/usr" ./install
}

sha512sums="2989b16c18dd776a79405082a405ee994cad3fbb1d61440c7ae0b94ac836dead0aa5d19757370407460f6abeb07e3261a43efaf9450d66d2055c2fe1a64fb764  ssh-getkey-ldap-0.1.2.tar.gz"
